# name = input("输入个东西")
# print("你好" + name)

"""
zhuyu = input("请输入这段话的主语:")
weiyu = input("请输入谓语:")
binyu = input("请输入宾语")
print("主语是" + zhuyu + "谓语是" + weiyu + "宾语是" + binyu)

"""
# name1, name2 = "11", "12"
# name3 = name4 = 111
# name3 = 222
# print(name4)
# print(name3)

# python中字符串不能和数字拼接
# data01 = int(8)
# data02 = float(8)
# data03 = str(3)

# price = float(input("请输入商品单价:"))
# number = int(input("请输入商品数量:"))
# money = float(input("请输入支付金额:"))
# # 找钱
# balance = money - price * number
#
# print("应找回" + str(balance))

# ** 幂运算
# / 小数商  // 整数商  % 余数

# people = int(input("请输入确诊人数:"))
# seck_people = int(input("请输入治愈人数:"))
# bili = float(seck_people / people)
# print("治愈比例为" + str(bili * 100) + "%")

# all_liang = float(input("请输入总两数(两):"))
# jin = all_liang // 16
# liang = all_liang % 16
# print("结果为:" + str(jin) + "斤" + str(liang) + "两")

# distance = float(input("请输入距离:"))
# speed = float(input("请输入初速度:"))
# second = float(input("请输入秒数:"))
# print("加速度是"+str(a))

# 增强运算符
# a = 5
# a += 5  # 累加
# print(a)

# 输入一个四位数数字,让千百十个上的数字相互相加,最后输出出来

# number = int(input("请输入一个四位数数字:"))
#
# result = number % 10
# result += number // 10 % 10
# result += number // 100 % 10
# result += number // 1000
# print("最终四位数相加结果是:" + str(result))

# print(int(input("请输入正数:")) > 0)
# print(int(input("输入的不是偶数")) % 2 != 0)
# print(1 <= int(input("输入的是月份:")) <= 12)

# age = int(input("请输入年龄:"))
# hight = int(input("请输入身高:"))
# print(age > 25 and hight > 170)


# 数据类型字面值
# 科学计数法 6e-28

# 换行使用\,可也以使用小括号进行换行

# a = 1
# b = 2
# if a > b:
#     print("对了")
# else:
#     print("错了")

# sex = input("请输入性别:")
# if sex == "男":
#     print("先生你好")
# elif sex == "女":
#     print("女士你好")
# else:
#     print("性别未知")

# num = int(input("请输入一个数字:"))
# if num > 0:
#     print("是正数")
# elif num < 0:
#     print("是负数")
# else:
#     print('零')

# num = int(input("请输入一个数字:"))
# if num == 1:
#     print('python课程')
# elif num == 2:
#     print('python高级')
# elif num == 3:
#     print('web全栈')
# else:
#     print('人工智能')


# 比较大小
# a = int(input('输入第一个数字:'))
# b = int(input('输入第二个数字:'))
# c = int(input('输入第三个数字:'))
# d = int(input('输入第四个数字:'))
#
# tmp_max = a
# if tmp_max < b:
#     tmp_max = b
# if tmp_max < c:
#     tmp_max = c
# if tmp_max < d:
#     tmp_max = d
# print("最大值是" + str(tmp_max))


# 连续的区间,只需要判断单边,只要判断双边,就一定不是连续区间
# ma = float(input('输入心理年龄:'))
# ca = float(input('输入实际年龄:'))
# iq = ma / ca * 100
# print(iq)
# if iq >= 140:
#     print('天才')
# elif 120 <= iq < 140:  # 这里如果写 <= 139 ,如果得出结果等于139.1,那也不算超长了,这里和下面3个都是这个问题
#     print('超长')
# elif 110 <= iq <= 119:
#     print('正常')
# elif 90 <= iq <= 109:
#     print('迟钝')
# else:
#     print('低能')


# day = int(input('请输入一个月份:'))
# if 1 <= day <= 12:
#     if day == 1 or day == 3 or day == 5 or day == 7 or day == 8 or day == 10 or day == 12:
#         print('有31天')
#     elif day == 2:
#         print('有29天')
#     else:
#         print('有30天')
# else:
#     print('输入月份有误')


# 循环语句
# while True:
#     day = int(input('请输入一个月份:'))
#     if 1 <= day <= 12:
#         if day == 1 or day == 3 or day == 5 or day == 7 or day == 8 or day == 10 or day == 12:
#             print('有31天')
#         elif day == 2:
#             print('有29天')
#         else:
#             print('有30天')
#     else:
#         print('输入月份有误')
#
#     if input('输入q退出') == "q":
#         break

# while True:
#
#     day = int(input('请输入一个月份:'))
#     if 1 <= day <= 12:
#         if day == 1 or day == 3 or day == 5 or day == 7 or day == 8 or day == 10 or day == 12:
#             print('有31天')
#         elif day == 2:
#             print('有29天')
#         else:
#             print('有30天')
#     else:
#         print('输入月份有误')
#
#     if input('输入y继续:') != "y":
#         break

# while 循环计数
# count = 0  # 计数器
# while True:
#     count += 1
#
#     if count == 100:
#         break

# while count < 5:
#     print('跑圈')
#     count += 1

# count = 2
# while count < 7:
#     print(count)
#     count += 1

# count = 1
# while count < 8:
#     print(count)
#     count += 2

# count = 8
# while count > 3:
#     print(count)
#     count -= 1

# count = -5
# while count < 0:
#     print(count)
#     count += 1

# 变成习惯左闭右开 [xxx)

# count = 0
# score = 0
# while count < 5:
#     score += float(input('请输入一个成绩:'))
#     count += 1
# print('5个人的平均成绩为' + str(score / 5))

# mountain = 8844.43 * 1000
# h = 0.01
# count = 0
# while h < mountain:
#     h *= 2
#     count += 1
# print('对折' + str(count) + '次可以超过珠穆朗玛放')

# import random
#
# ran_int = random.randint(1, 100)
# in_num = -1
# count = 0
# while in_num != ran_int:
#     count += 1
#     in_num = int(input('请输入一个数字:'))
#     if in_num > ran_int:
#         print('大了')
#     elif in_num < ran_int:
#         print('小了')
# print('猜对了,就是' + str(in_num) + "总共用了" + str(count) + '次')

# for循环

# message = '1234'
# tmp_num = 0
# for num in message:
#     tmp_num += int(num)
# print(tmp_num)

# range(1,5,1) 开始,结束,间隔,  间隔默认为1,  如果开始1不写,默认为0
# 注意,不包含结束值,左开右闭
# print(range(1, 3))
# for num in range(5):
#     print(num)

# tmp = 0
# for num in range(4):
#     tmp += int(num)
#     print(num)
# print(tmp)

# tmp = 0
# for num in range(2, 7):
#     tmp += int(num)
#     print(num)
# print(tmp)

# tmp = 0
# for num in range(1, 8, 2):
#     tmp += int(num)
#     print(num)
# print(tmp)

# tmp = 0
# for num in range(8, 3, -1):
#     print(num)
#     tmp += int(num)
# print(tmp)

# tmp = 0
# for num in range(-1, -6, -1):
#     tmp += int(num)
#     print(num)
# print(tmp)

# 能被3整除
#
# sum_value = 0
# for item in range(1, 101):
#     if int(item) % 3 == 0:
#         sum_value += int(item)
# print(sum_value)

# sum_value = 0
# for item in range(1, 101):
#     if int(item) % 3 != 0:
#         continue
#     sum_value += int(item)
# print(sum_value)

# sum_value = 0
# for item in range(10, 61):
#     if int(item) % 10 == 3 or int(item) % 10 == 5 or int(item) % 10 == 8:
#         continue
#     sum_value += int(item)
#     print(item)
# print(sum_value)

# sum_value = 0
# for item in range(10, 61):
#     # 这里要注意,如果不是3,一定要满足不是5和不是8,一定要用and,这里就写错了.
#     if int(item) % 10 != 3 or int(item) % 10 != 5 or int(item) % 10 != 8:
#         sum_value += int(item)
#     print(item)
# print(sum_value)

